package cn.wolfcode.wolf2w.business.service;

import cn.wolfcode.wolf2w.business.api.domain.Strategy;
import cn.wolfcode.wolf2w.business.query.StrategyQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 攻略Service接口
 * 
 * @author fang
 * @date 2024-09-27
 */
public interface IStrategyService extends IService<Strategy>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Strategy> queryPage(StrategyQuery qo);

    List<Strategy> queryViewnumTop3(Long destId);

    Strategy selectById(Long id);

    int insert(Strategy strategy);

    Map<String, Object> viewnumIncr(Long sid);

    Map<String, Object> replynumIncr(Long sid);

    Map<String, Object> favornumIncr(Long sid);

    Map<String, Object> thumbsubIncr(Long sid);

    void statisHashPersistence();

    void initStrategyStatisHash();
}
